﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="AddFood.aspx.vb" Inherits="Week3Wscc.AddHotel" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>



<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </asp:ToolkitScriptManager>
       
    <p>
        </p>
<asp:Accordion
    ID="Accordion0"
    runat="Server"
    SelectedIndex="0"
    HeaderCssClass="accordionHeader"
    HeaderSelectedCssClass="accordionHeaderSelected"
    ContentCssClass="accordionContent"
    AutoSize="None"
    FadeTransitions="true"
    TransitionDuration="250"
    FramesPerSecond="40"
    RequireOpenedPane="false"
    SuppressHeaderPostbacks="true">
    <Panes>

                <asp:AccordionPane ID="AccordionPane1" runat="server">
            <Header><img src="/pictures/misc/info_icon.png" /> General Information</Header>
            <Content><b>Food Name: </b><asp:TextBox ID="tb_FoodName" runat="server"></asp:TextBox><b> Brand: </b><asp:TextBox ID="tb_FoodBrand" runat="server"></asp:TextBox><b> Size </b>(please also add the unit of measurement): <asp:TextBox ID="tb_FoodSize" runat="server"></asp:TextBox></Content>
        </asp:AccordionPane>            
    </Panes>            

</asp:Accordion>

<asp:Accordion
    ID="Accordion2"
    runat="Server"
    SelectedIndex="0"
    HeaderCssClass="accordionHeader"
    HeaderSelectedCssClass="accordionHeaderSelected"
    ContentCssClass="accordionContent"
    AutoSize="None"
    FadeTransitions="true"
    TransitionDuration="250"
    FramesPerSecond="40"
    RequireOpenedPane="false"
    SuppressHeaderPostbacks="true">
    <Panes>

                <asp:AccordionPane ID="AccordionPane3" runat="server">            
            <Header><img src="/pictures/misc/calendar_icon.png" /> Additional Information</Header>
            <Content>Best Before <br />
            
            
            <asp:Calendar ID="cl_BestBefore" runat="server" 
            BackColor="White" 
            BorderColor="#2E4d7B" 
            BorderWidth="1px" 
            Font-Names="Verdana" 
            ForeColor="Black" 
            Font-Size="9pt" 
            Height="150px" 
            Width="900px"
            NextPrevFormat="FullMonth"
            SelectedDate="2014-01-12" 
            VisibleDate="2014-01-12">
            <DayHeaderStyle Font-Bold="True" Font-Size="8pt" />
            <NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333" 
                VerticalAlign="Bottom" />
            <OtherMonthDayStyle ForeColor="#999999" />
            <SelectedDayStyle BackColor="#333399" ForeColor="White" />
            <TitleStyle BackColor="White" BorderColor="#2E4d7B" BorderWidth="1px" 
                Font-Bold="True" Font-Size="12pt" ForeColor="#333399" />
            <TodayDayStyle BackColor="#CCCCCC" />
            </asp:Calendar>
            
            <br /><asp:TextBox ID="tb_FoodDescription" runat="server" Height="80px" 
            TextMode="MultiLine" Width="900px">Please add your description here...</asp:TextBox></Content>
        </asp:AccordionPane>            
    </Panes>           
</asp:Accordion>

<asp:Accordion
    ID="Accordion3"
    runat="Server"
    SelectedIndex="0"
    HeaderCssClass="accordionHeader"
    HeaderSelectedCssClass="accordionHeaderSelected"
    ContentCssClass="accordionContent"
    AutoSize="None"
    FadeTransitions="true"
    TransitionDuration="250"
    FramesPerSecond="40"
    RequireOpenedPane="false"
    SuppressHeaderPostbacks="true">
    <Panes>

                <asp:AccordionPane ID="AccordionPane4" runat="server">            
            <Header><img src="/pictures/misc/financial_icon.png" /> Financial Stuff</Header>
            <Content>
            Original Price: <asp:TextBox ID="tb_OriginalPrice" runat="server"></asp:TextBox> <font color="red">Please include the currency, too! (Examples: 2 EUR, 1.5 USD, 1.99 GBP)</font><br />What would you like to have in exchange for the listed food? (you can just leave 
        it blank if the food is for free): <asp:TextBox ID="tb_InExchange" runat="server" Height="60px" TextMode="MultiLine" 
            Width="900px"></asp:TextBox>
              <asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="Please enter numbers only!" ControlToValidate="tb_OriginalPrice" Text="Please enter the price in Euro. Use numeric values only!" OnServerValidate="Validate_Numeric" ForeColor="Red"></asp:CustomValidator>

            </Content>
        </asp:AccordionPane>            
    </Panes>            

</asp:Accordion>

<asp:Accordion
    ID="Accordion4"
    runat="Server"
    SelectedIndex="0"
    HeaderCssClass="accordionHeader"
    HeaderSelectedCssClass="accordionHeaderSelected"
    ContentCssClass="accordionContent"
    AutoSize="None"
    FadeTransitions="true"
    TransitionDuration="250"
    FramesPerSecond="40"
    RequireOpenedPane="false"
    SuppressHeaderPostbacks="true">
    <Panes>

                <asp:AccordionPane ID="AccordionPane5" runat="server">            
            <Header><img src="/pictures/misc/picture_icon.png" /> Picture</Header>
            <Content><asp:FileUpload ID="f_picture" runat="server" /></Content>
        </asp:AccordionPane>            
    </Panes>            

</asp:Accordion>

    <p>

        <asp:Button ID="Button1" runat="server" Text="Add New Food" />
    </p>
</asp:Content>
